
<?php
$config = Yii::app()->params['frontend'];
$yes_or_no = array(
    0 => Yii::t('common', 'no'),
    1 => Yii::t('common', 'yes'),
);
?>


<?php // CVarDumper::dump($config, 11, true); ?>
<div>
    <?php echo CHtml::beginForm(array('front'), 'post', array('class' => 'dot_form')); ?>
    <fieldset>
        <legend><?php echo Yii::t('common', 'please_fill_table_contents'); ?></legend>
        <dl>
            <dt>网站名称：</dt>
            <dd><?php echo CHtml::textField('site_name', $config['site_name'], array('class' => 'large')); ?></dd>
            <dt>联系人：</dt>
            <dd><?php echo CHtml::textField('linkman', $config['linkman'], array('class' => 'large')); ?></dd>
            <dt>TEL：</dt>
            <dd><?php echo CHtml::textField('tel', $config['tel'], array('class' => 'large')); ?></dd>
            <dt>FAX：</dt>
            <dd><?php echo CHtml::textField('fax', $config['fax'], array('class' => 'large')); ?></dd>
            <dt>手机号码：</dt>
            <dd><?php echo CHtml::textField('mobile_phone', $config['mobile_phone'], array('class' => 'large')); ?></dd>
            <dt>浮动客服：</dt>
            <dd><?php echo CHtml::textArea('online_customer_service', $config['online_customer_service'], array('style' => 'width: 410px; height: 80px;')); ?></dd>
            <dt>Email：</dt>
            <dd><?php echo CHtml::textField('email', $config['email'], array('class' => 'large')); ?></dd>
            <dt>地址：</dt>
            <dd><?php echo CHtml::textField('address', $config['address'], array('class' => 'large')); ?></dd>
            <dt>邮编：</dt>
            <dd><?php echo CHtml::textField('postcode', $config['postcode'], array('class' => 'large')); ?></dd>
            <dt>icp：</dt>
            <dd><?php echo CHtml::textField('icp', $config['icp'], array('class' => 'large')); ?></dd>
            <dt>统计代码：</dt>
            <dd><?php echo CHtml::textField('statistics_code', $config['statistics_code'], array('class' => 'large')); ?></dd>
            <dt>默认关键字：</dt>
            <dd><?php echo CHtml::textField('default_keywords', $config['default_keywords'], array('class' => 'large')); ?></dd>
            <dt>SEO 描述内容：</dt>
            <dd><?php echo CHtml::textField('default_description', $config['default_description'], array('class' => 'large')); ?></dd>
            <dt>关闭网站：</dt>
            <dd><?php echo CHtml::dropDownList('site_closing', $config['site_closing'], $yes_or_no); ?></dd>
            <dt>关闭原因：</dt>
            <dd><?php echo CHtml::textArea('site_closing_hint', $config['site_closing_hint'], array('style' => 'width: 410px; height: 80px;')); ?></dd>
            <dt></dt>
            <dd><?php echo CHtml::submitButton(Yii::t('common', 'update'), array('name' => 'submit_setting', 'class' => 'btn')); ?></dd>
        </dl>
    </fieldset>
    <?php echo CHtml::endForm(); ?>
</div>